package com.best.core.constants;

/**
 * @ClassName: CommonConstants
 * @Package: com.best.core.constants
 * @Description: 系统公共常量类
 * @Datetime: 2020/6/5 17:54
 * @Author: nike
 */
public class CommonConstants {
    // 响应请求成功
    public static final String HTTP_RES_CODE_200_VALUE = "success";
    // 系统错误
    public static final String HTTP_RES_CODE_500_VALUE = "fail";
    // 发送邮件
    public static final String MSG_EMAIL = "email";
    // 会员token
    public static final String TOKEN_MEMBER = "TOKEN_MEMBER";
    // 用户有效期 90天
    public static final Long TOKEN_MEMBER_TIME = (long) (60 * 60 * 24 * 90);
    public static final int COOKIE_TOKEN_MEMBER_TIME = (60 * 60 * 24 * 90);
    // cookie 会员 totoken 名称
    public static final String COOKIE_MEMBER_TOKEN = "cookie_member_token";
    // 微信注册码存放rediskey
    public static final String WEIXINCODE_KEY = "weixin.code";
    // 微信注册码有效期30分钟
    public static final Long WEIXINCODE_TIMEOUT = 1800l;

    // 登录类型
    // 安卓端
    public static final String MEMBER_LOGIN_TYPE_ANDROID = "ANDROID";
    // ios端
    public static final String MEMBER_LOGIN_TYPE_IOS = "IOS";
    // pc端
    public static final String MEMBER_LOGIN_TYPE_PC = "PC";
    // 是否可用
    // 可用
    public static final Integer ENABLE_AVALIBLE = 0;
    // 不可用
    public static final Integer UNENABLE_AVALIBLE = 1;

    // 会员服务登录token前缀
    public static final String MEMBER_TOKEN_KEYPREFIX = "best.shop.member.login";
    // 会员服务登录失效时间 90 天
    public static final Long MEMBRE_LOGIN_TOKEN_TIME = 77776000L;
}
